package com.webservice.objects;

import ui.Thumbnail;

public class FlickrPhoto {
	// { "id": "7943632366", "owner": "55312072@N05", "secret": "9d660651d9",
	// "server": "8177", "farm": 9, "title": "Reception (34)", "ispublic": 1,
	// "isfriend": 0, "isfamily": 0 }

	public String id, owner, secret, server, title, width_sq, url_sq;
	public FlickrPhotoSizes sizes;
	public Thumbnail thumb;
	public Boolean thumb_loaded = false;
	
	@Override
	public String toString() {
		return ("id : " + id + ", owner : " + owner + ", title : " + title);
	}
	
	public String getThumbnail() {
		return (sizes.getSize(2)).source;
	}
	
	public String getLarge() {
		return (sizes.getSize(8)).source;
	}
}
